include(cflags.pri) # compiler flags
include(version.pri)

TEMPLATE = lib
TARGET = 
VERSION = $$DGV_VERSION

unix {
    isEmpty(INSTALLBASE) {
        INSTALLBASE = /usr/local
    }
    
    BINDIR = $$INSTALLBASE/lib
    DATADIR =$$INSTALLBASE/share

    DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
    
    target.path    = $$BINDIR
    headers.path   = $$INSTALLBASE/include
    doc.path       = $$INSTALLBASE/doc
}

win32 {
    INSTALLBASE    = C:/DGV
    
    target.path    = $$INSTALLBASE/lib
    headers.path   = $$INSTALLBASE/include
    doc.path       = $$INSTALLBASE/doc
}

DGV_INCLUDEPATH = ./include 

DEPENDPATH += $$DGV
INCLUDEPATH += $$DGV_INCLUDEPATH $$DGV
target.path    = $$INSTALLBASE/lib
headers.path   = $$INSTALLBASE/include/contrib
doc.path       = $$INSTALLBASE/doc

OBJECTS_DIR = ./obj
MOC_DIR = ./moc
DESTDIR = ./lib
INSTALLS = target

unix:LIBS -= -ldgv_vtk -ldgv
win32-msvc2005:LIBS -= dgv_vtk0.lib dgv0.lib
win32-msvc2008:LIBS -= dgv_vtk0.lib dgv0.lib
win32-g++:LIBS -= -ldgv_vtk -ldgv

CONFIG -= qt
unix:DEFINES -= QT_SHARED
DEFINES -= QT_DLL QWT_DLL
CONFIG += warn_on dll release

DEFINES += DGV_DLL CONTRIB_MAKEDLL

HEADERS += ./include/contrib/libtarga.h

SOURCES += ./src/contrib/libtarga.c

headers.files  = $$HEADERS
doc.files      = $${DGV}/doc/html
INSTALLS = target headers
